/*
 * @Description: Description
 * @Author: wning
 * @Date: 2022-12-01 16:22:31
 * @LastEditors: Andy
 * @LastEditTime: 2023-02-15 11:14:20
 */

import i18n from '@/common/lang'

export const columns = [
  {
    label: i18n.t('system.tenant.tenantName'),
    width: 'auto',
    minWidth: 140,
    prop: 'tenantName',
    fixed: true
  },
  {
    label: i18n.t('system.tenant.enterpriseAbbreviation'),
    width: 'auto',
    minWidth: 140,
    prop: 'shortName',
    fixed: true
  },
  {
    label: i18n.t('system.tenant.primaryAccount'),
    width: 'auto',
    minWidth: 140,
    prop: 'adminUsername'
  },
  {
    label: i18n.t('system.tenant.contacts'),
    prop: 'adminRealName',
    width: 'auto',
    minWidth: 120
  },
  {
    label: i18n.t('system.tenant.phoneNumber'),
    prop: 'adminMobile',
    width: 'auto',
    minWidth: 140
  },
  {
    label: i18n.t('organization.rank.state'),
    width: 'auto',
    prop: 'state'
  },
  {
    label: i18n.t('organization.rank.createId'),
    prop: 'createUserName',
    width: 'auto',
    minWidth: 130
  },
  {
    label: i18n.t('organization.rank.createTime'),
    prop: 'createTime',
    minWidth: 160,
    width: 'auto'
  }
]

export const actions = [
  {
    key: 'edit',
    text: i18n.t('common.edit'),
    permissions: 'upms:tenant:update'
  },
  {
    key: 'delete',
    text: i18n.t('common.delete'),
    permissions: 'upms:tenant:delete'
  },
  {
    key: 'assignMenu',
    text: i18n.t('system.tenant.assignMenu'),
    permissions: 'upms:tenant:menu'
  },
  {
    key: 'accountTransfer',
    text: i18n.t('system.tenant.accountTransfer'),
    permissions: 'upms:tenant:accountTransfer'
  },
  {
    key: 'resetPassword',
    text: i18n.t('system.user.resetPassword'),
    permissions: 'upms:tenant:resetPwd'
  }
]
